package com.example.blog.service;

import com.example.blog.pojo.Tag;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface TagService {
    Tag saveTag(Tag tag);
    Tag getTag(Long id);
    Tag getTagByName(String name);
    Page<Tag>listTag(Pageable pageable);
    Tag updateTag(Long id,Tag tag);
    List<Tag>listTag();
    List<Tag>listTag(Integer size);
    List<Tag>List(String ids);
    void deleteTag(Long id);
}
